package _17注解解析;

import java.lang.annotation.Annotation;
import java.lang.reflect.Method;

public class Demo {
    public static void main(String[] args) throws Exception {
        Class<?> aClass = Class.forName("_17注解解析.Book");
        Method show = aClass.getMethod("show");
        Annotation[] a = show.getAnnotations();

        BookMassage annotation = show.getAnnotation(BookMassage.class);
        annotation.name();



    }
}
